mandir = @mandir@/ja

SUBDIRS =
DIST_SUBDIRS =

EXTRA_DIST = \
	FAQ.txt

if ENABLE_DOCBOOK
man_MANS = \
	lxc-attach.1 \
	lxc-autostart.1 \
	lxc-cgroup.1 \
	lxc-checkconfig.1 \
	lxc-checkpoint.1 \
	lxc-config.1 \
	lxc-console.1 \
	lxc-copy.1 \
	lxc-create.1 \
	lxc-destroy.1 \
	lxc-device.1 \
	lxc-execute.1 \
	lxc-freeze.1 \
	lxc-info.1 \
	lxc-ls.1 \
	lxc-monitor.1 \
	lxc-snapshot.1 \
	lxc-start.1 \
	lxc-stop.1 \
	lxc-top.1 \
	lxc-unfreeze.1 \
	lxc-unshare.1 \
	lxc-update-config.1 \
	lxc-user-nic.1 \
	lxc-usernsexec.1 \
	lxc-wait.1 \
	\
	lxc.conf.5 \
	lxc.container.conf.5 \
	lxc.system.conf.5 \
	lxc-usernet.5 \
	\
	lxc.7

%.1 : %.sgml
	$(db2xman) --encoding=UTF-8 $<
	test "$(shell basename $@)" != "$@" && mv $(shell basename $@) $@ || true

%.5 : %.sgml
	$(db2xman) --encoding=UTF-8 $<
	test "$(shell basename $@)" != "$@" && mv $(shell basename $@) $@ || true

%.7 : %.sgml
	$(db2xman) --encoding=UTF-8 $<
	test "$(shell basename $@)" != "$@" && mv $(shell basename $@) $@ || true

lxc-%.sgml : common_options.sgml see_also.sgml

clean-local:
	$(RM) manpage.* *.7 *.5 *.1 $(man_MANS)
endif
